import { createSSRApp } from 'vue'
import App from './App.vue'

import * as Pinia from 'pinia'; //新增pinia

export function createApp() {
  const app = createSSRApp(App)
  app.use(Pinia.createPinia());  //初始化pinia
  return {
    app,
	Pinia, // 此处必须将 Pinia 返回
  }
}